<style>
.fail{
  background: rgb(223,223,223);color: white;
}
</style>
<volist name="list" id="vo">
  <div class="item <notempty name='vo.out'>fail</notempty>">
    <div class="row">
      <div class="col-xs-12">
        <div class="hd clearfix "<notempty name='vo.out'>style='background: rgb(223,223,223)'</notempty> >
          <span class="col-xs-11">
            下单时间：{$vo.otime|time_format}
            <span class="split"></span>
            配送至：{$vo.ship_area}{$vo.ship_address}
            <span class="split"></span>
            订单号：{$vo.join_sn}
          </span>
          <notempty name='vo.out'>
            <span class="text-right col-xs-1">
              <a href="javascript:;" class="btn-cancel J_order_recycle" data-id="{$vo.id}" title="删除到回收站"><i class="icon icon-remove"></i></a>
            </span>
          </notempty>
        </div>
      </div>
      <div class="col-xs-12 bd clearfix">
        <div class="col-xs-6 one">
           <a href="{:U('Join/detail', array('id' => $vo['item_id'] ,'activity_id' => $vo['activity_id']))}" class="pic" title="{$vo.name}" alt="{$vo.name}" target="_blank"><img class="imgurl" src="{:get_image_thumb(get_cover($vo['thumb'],'path'), 60, 60)}" width="58" /></a>
          <notempty name='vo.web'>
           <em > 我要邀请好友：</em>
            <div class="jiathis_style_24x24" style="display: inline-block;"> 
            <input type="hidden" class="goodsname" value='{$vo.name}'>
            <input type="hidden" class="sumary" value='{$vo.name}'>
            <input type="hidden" class="imgurl" value="{$web}{:get_image_thumb(get_cover($vo['thumb'],'path'), 60, 60)}">
            <input type="hidden" class="goodsurl" value="{$vo.web}">
            <a class="jiathis_button_cqq"></a>
            <a class="jiathis_button_qzone"></a>
            <!-- <a class="jiathis_button_tqq"></a> -->
            <a class="jiathis_button_tsina"></a>
            <a class="jiathis_button_weixin"></a>
            <a class="jiathis_button_renren"></a>
            </div>
          </notempty>
        </div>
        <div class="col-xs-2 text-center">
          <span class="text-danger text-amount <notempty name='vo.out'>fail</notempty>">{:sprintf('%.2f', $vo['total_amount'])} 元</span>
          <br />
          <notempty name='vo.web'>
            <a href="{:U('Join/join', array('id' => $vo['jid']))}">拼团查看</a>
          </notempty>
        </div>
        <div class="col-xs-4 text-center">
          <div class="text-rows">
          <if condition='$vo.out neq 1 '>       
              <em class="msg">
                  <switch name='vo.jstatus'>
                    <case value='0'>
                      <php>
                          if( $vo['paytime'] > 0 &&  min($vo['hdetime'],gethdtime($vo['item_id'])) < time()){
                            echo '发起的团购已截止';
                          }else{
                            echo '待拼团';
                          }
                      </php>
                    </case>
                    <case value='1'>拼团成功</case>
                    <case value='2'>拼单失败,退款处理中</case>
                    <case value='3'>拼团失败且已退款</case>
                  </switch>
              </em>
                  <if condition='$vo.status gt 0'>
                    <a href="{:U('Join/orderDetail', array('order_sn' => $vo['join_sn']))}" class="btn" target="_blank">订单详情</a>
                  <else />
                    <a href="{:U('Join/preview', array('order_id' => $vo['id']))}" class="btn btn-positive" target="_blank">
                      <i class='icon icon-recharge'>立即支付</i>
                    </a>
                  </if>
                  <if condition="$vo.jstatus eq 1">
                    <a href="{:U('Order/detail',array('order_sn'=>$vo['join_sn']))}">查看</a>
                  </if>
                  <!--物流-->
                  <if condition="in_array($vo['o_status'], array(201, 202))">
                    <br/>
                    <a href="javascript:$.ui.load('{:U('Order/getDelivery?order_id='.$vo['id'])}', '物流配送信息');" class="btn">查看物流</a>
                  </if>
          <else />
            <em style=' font-size: large;font-weight: bold;'>您所参加的团购订单失效。</em>
          </if>
          </div>
        </div> 
      </div>
    </div>
  </div>
</volist>